﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="MainScreen.ascx.cs"
    Inherits="CMS.Web.MainScreen" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="CMS.Core.DataInterfaces" %>
<%@ Import Namespace="CMS.Core.Domain" %>
<style type="text/css">
/* <![CDATA[ */
#tdList table ,#tdList td
{
    border-color: #600; border: 1px;
    border-style: solid;
}

#tdList table
{
    border-width: 0px 0px 1px 1px;
    border-spacing: 1;
}

#tdList td
{
    margin: 0;
    padding: 10px;
    border-width: 1px 1px 0 0;
}

/* ]]> */
</style>
<table bordercolor="#ffffff" cellspacing="0" cellpadding="0" width="98%" border="0"
    align="center">
    <tr>
        <td width="100%" id="tdList">
        <div id="tblList" runat="server" >
            <table class="Table_Border" border="0" cellspacing="0"
                cellpadding="5" width="100%" style="border-collapse: collapse; border: solid 1px">
                <tr class="Separation_Line">
                    <td>Văn bản đến</td>
                    <td>Văn bản đi</td>
                    <td>Xử lý công việc</td>
                </tr>
                <tr>
                    <td width="33%" rowspan="6" class="Row_Document_Main">
                        <%if (IDList != null)
                          {
                              ArrayList arrID;
                              for(int i=0;i<IDList.Count;i++){
                                  arrID = (ArrayList)IDList[i];
                        %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrID[2]%>" class="Link_Document_Main">
                                    <%=arrID[0]%></a> <%= arrID[1]%><br /><br />
                          <%} %>
                        <%} %>
                    </td>
                    <td width="33%" rowspan="6" class="Row_Document_Main">
                        <%if (ODList != null)
                          {
                              ArrayList arrOD;
                              for(int i=0;i<ODList.Count;i++){
                                  arrOD = (ArrayList)ODList[i];
                        %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrOD[2]%>" class="Link_Document_Main">
                                    <%=arrOD[0]%></a> <%= arrOD[1]%><br /><br />
                          <%   }
                          } %>
                    </td>
                    <td width="34%" class="Title_Document_Main">
                        <%if (TaskList != null)
                          {
                              ArrayList arr;
                              ArrayList arrSub;
                              arr = (ArrayList)TaskList[0];
                        %>
                           <%=arr[0]%>
                        <%} %>
                    </td>
                </tr>
                <tr>
                    <td class="Row_Document_Main">
                    <br />
                    <%if (TaskList != null)
                          {
                        %>
                        <%      
                            ArrayList arr;
                            ArrayList arrSub;
                            arr = (ArrayList)TaskList[0];
                        %>
                           <%
                                
                            for (int j = 1; j < arr.Count; j++)
                            {
                                arrSub = (ArrayList)arr[j];
                              %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main">
                                    <%=arrSub[0]%></a> <%= arrSub[1]%><br /><br />
                                <%} %>
                                <%} %>
                    </td>
                </tr>
                <%if (TaskList != null)
                          {
                             ArrayList arr;
                             ArrayList arrSub;
                              for (int i = 1; i < TaskList.Count && i<3; i++)
                              {
                                  arr = (ArrayList)TaskList[i];
                        %>
                            <tr>
                                <td height="20px" class="Title_Document_Main"><%=arr[0] %></td>
                            </tr>
                            <tr class="Row_Document_Main"><td>
                            <br />
                            <%                                
                                for (int j = 1; j < arr.Count; j++)
                                {
                                    arrSub = (ArrayList)arr[j];
                            %><img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main"><%=arrSub[0]%></a> <%= arrSub[1]%><br /><br/>
                              <%}%>
                            </td></tr>
                          <%}
                         } %>
            </table>
            </div>
            <div  id="tblGeneral" runat="server"> 
            <table class="Table_Border" style="border-collapse: collapse; border: solid 1px" cellspacing="0"
                cellpadding="5" width="100%" border="0">
                <tr class="Separation_Line">
                    <td>Xử lý công việc</td>
                </tr>
                        <%if (TaskList != null)
                          {
                        %>
                        <%      
                              ArrayList arr1;
                              ArrayList arr2;
                              ArrayList arrSub;
                              arr1 = (ArrayList)TaskList[0];
                              arr2 = (ArrayList)TaskList[1];
                        %>
                            <tr>
                                <td height="20px" class="Title_Document_Main"><%=arr1[0] %></td>
                            </tr>
                            <tr><td class="Row_Document_Main">
                            <%
                                
                                for (int j = 1; j < arr1.Count; j++)
                                {
                                    arrSub = (ArrayList)arr1[j];
                              %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main">
                                    <%=arrSub[0]%></a> <%= arrSub[1]%><br /><%if(j<arr1.Count-1){ %><br /><%} %>
                                <%} %>
                            </td>
                            </tr>
                            <tr>
                                <td height="20px" class="Title_Document_Main"><%=arr2[0] %></td>
                            </tr>
                            
                            <tr>
                            <td class="Row_Document_Main">
                            <%
                                
                                for (int j = 1; j < arr2.Count; j++)
                                {
                                    arrSub = (ArrayList)arr2[j];
                              %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main">
                                    <%=arrSub[0]%></a> <%= arrSub[1]%><br /><%if(j<arr2.Count-1){ %><br /><%} %>
                                <%} %>
                            </td>
                            </tr>
                        <%
                            arr1 = (ArrayList)TaskList[2];
                        %>
                            <tr>
                                <td height="20px" class="Title_Document_Main"><%=arr1[0] %></td>
                            </tr>
                            <tr><td class="Row_Document_Main">
                            <%
                                
                                for (int j = 1; j < arr1.Count; j++)
                                {
                                    arrSub = (ArrayList)arr1[j];
                              %>
                               <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main">
                                    <%=arrSub[0]%></a> <%= arrSub[1]%><br /><%if(j<arr1.Count-1){ %><br /><%} %>
                                <%} %>
                            </td>
                            </tr>
                        <%
                            arr1 = (ArrayList)TaskList[3];
                        %>
                            <tr>
                                <td height="20px" class="Title_Document_Main"><%=arr1[0] %></td>
                            </tr>
                            <tr><td class="Row_Document_Main">
                            <%
                                
                                for (int j = 1; j < arr1.Count; j++)
                                {
                                    arrSub = (ArrayList)arr1[j];
                              %>
                                <img border="0" src="Images/scroll2.png"/> Có <a href="<%=arrSub[2]%>" class="Link_Document_Main">
                                    <%=arrSub[0]%></a> <%= arrSub[1]%><br /><%if(j<arr1.Count-1){ %><br /><%} %>
                                <%} %>
                            </td>
                            </tr>
                        <%} %>
                    </table>
                    </div>
        </td>
    </tr>
</table>
